package com.liu.lab06.service;

import com.liu.lab06.pojo.Music;

import java.util.List;

public interface MusicService {
    Music getMusicById(int id);
    List<Music> getAllMusics();
    List<Music> searchMusicsByName(String key);
    List<Music> getMusicsByCategory(int categoryId);
    int addMusic(Music music);
    int updateMusic(Music music);
    int deleteMusic(int id);
}
